package com.ys.enume.finance;

//预付款退回申请
public class TcwPaymentReturnEnum {
    public enum PaymentReturnType {
        TPHK("店铺回款", 0),
        DGDK("对公打款", 1),
        ;
        public String name;
        public Integer value;

        private PaymentReturnType(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public static String getName(int value) {
            for (PaymentReturnType e : PaymentReturnType.values()) {
                if (e.value == value) {
                    return e.name;
                }
            }

            return "";
        }

        public static Integer getValue(String name) {
            for (PaymentReturnType e : PaymentReturnType.values()) {
                if (e.name.equals(name)) {
                    return e.value;
                }
            }
            return null;
        }
    }
}
